﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace TestNetworkStream
{
    class Program
    {
        static void Main(string[] args)
        {
            Thread thServer = new Thread(Server.Run);

            thServer.IsBackground = true;
            thServer.Start();

            // thServer.Abort();

            Thread thClient = new Thread(Client.Run);

            thClient.IsBackground = true;
            thClient.Start();

            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();
        }
    }
}
